gtk: x: fix compilation without x11 backend
authorLionel Landwerlin <llandwerlin@gmail.com>
Sat, 7 Feb 2015 20:05:18 +0000 (20:05 +0000)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Thu, 12 Feb 2015 10:55:52 +0000 (10:55 +0000)
https://bugzilla.gnome.org/show_bug.cgi?id=744148

gtk/gtkx-autocleanups.h

index 3705ff4564a6915e65e3631d7b809f6e59f83d23..bc200a0207595eab6d626f96a6741ef99edffaca 100644 (file)
 #error "Only <gtk/gtkx.h> can be included directly."
 #endif
 
+#ifdef GDK_WINDOWING_X11
+
 #ifndef __GI_SCANNER__
 
 G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkSocket, g_object_unref)
 G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkPlug, g_object_unref)
 
 #endif
+
+#endif